package com.ahdms.es.bean;

/**
 * @author qinxiang
 * @date 2021-04-22 16:18
 */
public class SesSignInfo {

    private String signDate;

    private SealInfo sealInfo;

    private CertInfo certInfo;

    public SesSignInfo() {
    }

    public SesSignInfo(SealInfo sealInfo, CertInfo certInfo) {
        this.sealInfo = sealInfo;
        this.certInfo = certInfo;
    }

    public SesSignInfo(String signDate, SealInfo sealInfo, CertInfo certInfo) {
        this.signDate = signDate;
        this.sealInfo = sealInfo;
        this.certInfo = certInfo;
    }

    public static SesSignInfoBuilder builder(){
        return new SesSignInfo.SesSignInfoBuilder();
    }

    public String getSignDate() {
        return signDate;
    }

    public void setSignDate(String signDate) {
        this.signDate = signDate;
    }

    public SealInfo getSealInfo() {
        return sealInfo;
    }

    public void setSealInfo(SealInfo sealInfo) {
        this.sealInfo = sealInfo;
    }

    public CertInfo getCertInfo() {
        return certInfo;
    }

    public void setCertInfo(CertInfo certInfo) {
        this.certInfo = certInfo;
    }

    public static class SesSignInfoBuilder {
        private String signDate;

        private SealInfo sealInfo;

        private CertInfo certInfo;

        public SesSignInfoBuilder signDate(String signDate){
            this.signDate = signDate;
            return this;
        }

        public SesSignInfoBuilder sealInfo(SealInfo sealInfo){
            this.sealInfo = sealInfo;
            return this;
        }

        public SesSignInfoBuilder certInfo(CertInfo certInfo){
            this.certInfo = certInfo;
            return this;
        }

        public SesSignInfo build(){
            return new SesSignInfo(this.signDate,this.sealInfo,this.certInfo);
        }

    }

}
